package ch.epfl.lara.core.ast

object PrettyPrint {
  def apply(tree: AST): Unit = println(toString(tree))

  def toString(tree: AST): String = {
    def stringRep(tree: AST): String = tree match {
      case Ident(name) => name
      case Wrong => "wrong!"
    }

    stringRep(tree)
  }
}


